/******************************************************************************
 * Copyright (C) 2017 Chengdu Dlhd information industry co. LTD.
 * All Rights Reserved.
 * 本软件为成都顶联互动信息产业有限公司开发研制。未经本公司正式书面同意，其他任何个人、团体不得使用、复制、修改或发布本软件.
 *****************************************************************************/
package net.dgg.dggcloud.service.jrcrm.service.customer;

import net.dgg.dggcloud.core.minidao.hibernate.dao.IGenericBaseCommonDao;
import net.dgg.dggcloud.service.common.base.service.BaseService;
import net.dgg.dggcloud.service.jrcrm.dao.customer.CustomerDao;
import net.dgg.dggcloud.service.jrcrm.dao.customer.SoundPushRecordDao;
import net.dgg.dggcloud.service.jrcrm.entity.customer.Customer;
import net.dgg.dggcloud.service.jrcrm.entity.customer.SoundPushRecord;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * 录音管理业务处理层
 * @ClassName: SoundPushRecordService
 * @Author: 罗金
 * @Date: 2017年11月03 14:34:05
 * @Version V1.0
 */

@Service
public class SoundPushRecordService extends BaseService {

    @Autowired
    private SoundPushRecordDao soundPushRecordDao;
    @Resource(name = "miniDaoHiberCommonDao")
    protected IGenericBaseCommonDao repository;

    /**
     * 查询录音列表信息
     * @param map
     * @return
     */
    public List<Map> querySoundRecordList(Map map){
        return soundPushRecordDao.querySoundPushRecordListByParams(map);
    }

    /**
     * 查询录音列表信息计数
     * @param map
     * @return
     */
    public Integer querySoundRecordListCount(Map map){
        return soundPushRecordDao.querySoundPushRecordListCountByParams(map);
    }

    /**
     * 录音推送详情
     * @param id
     * @return
     */
    public SoundPushRecord findPushRecordById(Long id){
        return repository.get(SoundPushRecord.class,id);
    }



}
